package cn.rentaotao.spring.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 通过 @ResponseStatus 指定异常的响应信息
 *
 * @author rtt
 * @date 2022/5/16 13:42
 */
@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR, reason = "spittle not found")
public class SpittleException extends Exception{

    public SpittleException() {
        super();
    }

    public SpittleException(String message) {
        super(message);
    }

    public SpittleException(String message, Throwable cause) {
        super(message, cause);
    }

    public SpittleException(Throwable cause) {
        super(cause);
    }

    protected SpittleException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
